<?php $filename  = $filename.'?'.filemtime($_SERVER['DOCUMENT_ROOT'].public_path($filename)) ?>
<script type="text/javascript">
  $(document).ready(function(){
    generateGMarks('<?php echo public_path($filename) ?>');
  });
</script>